<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/view/system/common/headLogin.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style>
.messager-body {
    padding: 10px;
    overflow: auto!important;
}
.myBoldLink{
	font-weight: bold;
	cursor:pointer;
}
</style>

<script>
	//字符串去空格
	function jsTrim(instr) {
		return instr.replace(/[ ]/g, "");
	}

	jQuery().ready(
			function() {
				jQuery(".menu_ico_logo img").hover(
						function() {
							jQuery(this).stop(true).parents("li").addClass(
									"zin").end().animate({
								left : 0,
								top : 0,
								width : 60,
								height : 50
							}, 200);
						},
						function() {
							jQuery(this).stop(true).parents("li").removeClass(
									"zin").end().animate({
								left : 0,
								top : 0,
								width : 50,
								height : 50
							}, 200);
						});
			});

	
	//初始化菜单Panel
	function initPanel() {
		var panels = $(".easyui-panel");
		for (var i = 0; i < panels.length; i++) {
			$('#' + panels[i].id).panel({
				onBeforeExpand : function() {
					closeOther(this, panels);
				}
			});
		}
	}
	
	//关闭TAB页   
	function closeOther(obj, allpanel) {
		for (var i = 0; i < allpanel.length; i++) {
			if (parseInt(obj.id) != parseInt(allpanel[i].id)) {

				$('#' + allpanel[i].id).panel({
					collapsed : true
				});
			} else {

				$('#' + allpanel[i].id).panel({
					collapsed : false
				});
			}
		}
	}

	//点击弹出框
	function showPwdupdate() {
		document.getElementById("userInfoFrame").contentWindow.resetForm();
		$('#userInfo').window('open');
	}
	

	//退出登录
	function loginOut() {
		$.messager.confirm('确定','确定要退出系统吗？',function(r){
		    if (r){
		    	$.axs("login/loginOut.action", "", function(){
		    		window.location.href = "login/goLogin.action";
		    	});
		    }
		});
	}
	
	
	function isEmpty(str){
		return str == undefined || str == null || str == "null" || $.trim(str).length == 0 ;
	}
</script>
<body class="easyui-layout" id="cc">
 
	<div region="north" split="true" style="height:114px;" title='<s:text name="system_name"/>'
		data-options="collapsible:true,collapsed:false">
		 <iframe id="topFrame" src="view/getTop.action" frameborder="0"
			style="width:100%;height:100%;" scrolling="no"> </iframe> 
	</div>
	<div region="south" title="" split="true" style="height:43px">
		 <iframe id="downFrame" src="view/getDown.action" frameborder="0"
			style="width:100%;height:100%;" scrolling="no"> </iframe>
	</div>
	<div region="west" border="false"
		style="width:189px;background:#eef8fe;" title="菜单导航"
		data-options="collapsible:true,collapsed:false">
		<iframe id="leftFrame"
			src="view/getLeftmenu.action?systemMenuId=${systemMenuId}" frameborder="0"
			style="width:100%;height:100%;" scrolling="yes"> </iframe> 
	</div>
	<div region="center">
		<div class="easyui-tabs" fit="true" plain="true" id="tt"
			style="height:100px;width:300px;">
			<div style="padding:5px;" title="我的工作台" href="view/getWelcome.action"></div>
		</div>
	</div>

	<div id="userInfo" class="easyui-window" closed="true" modal="true"
		collapsible="false" title="修改密码"
		style="width:550px;height:220px;" minimizable="false"
		maximizable="false">
		 <iframe id="userInfoFrame"
			src="view/goChangePwd.action?operatorUserId=${txtUserId}" frameborder="0"
			style="width:100%;height:95%;" > </iframe> 
	</div>
	
</body>
</html>